<?php

namespace App;

namespace App\Model;

use Util\Common;

/**
 * App\Station
 *
 * @property int $id
 * @property int $distributor_id 分销商
 * @property string $name 名称
 * @property int $sort 排序
 */
class StationClass extends Model
{
    //
    public bool $timestamps = true;

    protected ?string $table = 'station_class';

    protected array $fillable = [
        'name', 'sort','distributor_id','id'
    ];

    /**
     * @return \Hyperf\Database\Model\Relations\HasMany
     */
    public function stations(){
        return $this->hasMany(Station::class,'class_id','id');
    }
}
